import java.util.Scanner;

/**
 * @author: gao
 * @create-date: 2025/5/30 20:50
 */

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            double s = scanner.nextDouble();
            System.out.println(String.format("%.3f",new Circle(s).getArea()));
            System.out.println(String.format("%.3f",new Square(s).getArea()));
        }
    }
}

class Shape {
    private double s;

    public Shape(double s) {
        this.s = s;
    }

    public double getS() {
        return s;
    }
}

interface Area {
    double getArea();
}

class Circle extends Shape implements Area {

    public Circle(double s) {
        super(s);
    }

    @Override
    public double getArea() {
        return Math.pow(getS(), 2) / (4 * Math.PI);
    }
}

class Square extends Shape implements Area {

    public Square(double s) {
        super(s);
    }

    @Override
    public double getArea() {
        return Math.pow(getS(),2) / 16;
    }
}